package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.Company;
import org.example.pojo.Job;
import org.example.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface JobMapper {

    List<Job> selectAllJobs();

    List<Job> searchJob(Integer jobId, @Param("name")String jobName, @Param("location") String location,
                        @Param("salary")String salary, Integer minsalary, Integer maxsalary);


    Job findJobById(@Param("jobId") Integer jobId);

    List<Job> analysisJobs(String tags, String degree, String low_experience, String up_experience, String location);


    Job selectByJobId(Integer jobId, Integer companyId);

    List<Job> analysisRole(String tags, String location);

    void deleteJob(Integer jobId, Integer status);

    List<Job> getCompanyJobList(Integer companyId);

    void updateCompany(Company company);

    Integer getCount(List<Integer> counts);

    List<Job> getHotJobList();

    void insertJob(Job job);
}
